<div class="left" id="mainleft">
    <div class="userc">
        <div class="box">
            <span style="width:150;height:auto;overflow:hidden;">
                <a href="<?php echo url('users/profile') ?>">
                    
                    <?php if($user->fields->photo): ?>
                    <img src="<?php echo $user->fields->photo ?>" width="120" height="140" />
                    <?php else: ?>
                    <img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/userheader.png" width="120" height="140" />
                    <?php endif ?>

                </a>
            </span>
            <p>欢迎您，<a class="red"><?php echo $user->username ?></a></p>
            <p>[ <a href="<?php echo url('articles', array('col_id'=>Helper_Common::iniFront('notice_column_id'), 'depart_id'=>$user->department->depart_id)) ?>"><?php echo $user->department->name ?></a> ]</p>
        </div>
        <div class="butt mtl">
            <div class="but_1">
                <table width="100%">
                    <tbody>
                        <tr>
                            <td><li class="red"><a href="<?php echo url('users/messages', array('target'=>'in', 'new' => true)) ?>">新信息：<?php echo $new_message_count?></a></li></td>
                            <td><li><a href="<?php echo url('users', array('col_id'=>Helper_Common::iniFront('notice_column_id'))) ?>">公 告：<?php echo $article_notice_count ?></a></li></td>
                        </tr>
                        <tr>
                            <td><li><a href="<?php echo url('users/messages', array('target'=>'in')) ?>">收件箱：<?php echo $message_count ?></a></li></td>
                            <td><li><a href="<?php echo url('users', array('col_id'=>Helper_Common::iniFront('share_column_id'))) ?>">文 件：<?php echo $article_share_count ?></a></li></td>
                        </tr>
                        <tr>
                            <td colspan="2"><a href="<?php echo url('users/profile') ?>"><img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/incenter.png" border="0" /></a></td>
                        </tr>
                        <tr>
                            <td><a href="<?php echo url('users/editpost', array('col_id'=>Helper_Common::iniFront('notice_column_id'))) ?>"><img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/doc_ico.png" border="0" /></a></td>
                            <td><a href="<?php echo url('users/editpost', array('col_id'=>Helper_Common::iniFront('share_column_id'))) ?>"><img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/sha_ico.png" border="0" /></a></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="anniu mtl"><a href="<?php echo url('users/addresslist') ?>"><img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/anniu_1.png" border="0" /></a></div>
    <div class="phone mtl">
        <h2>学校常用电话</h2>
        <div><?php echo Helper_Common::onestuff('school_useful_telephone')->value?></div>

    </div>
    <div class="links mtl">
        <h2>常用链接</h2>
        <ul>
            <div><?php echo Helper_Common::onestuff('school_useful_links')->value?></div>
        </ul>
    </div>
</div>

